package cn.terminus.data.customer.contractrentclause.mapper;

import cn.terminus.common.customer.bean.contractrentclause.dto.ContractRentClauseNewDto;
import cn.terminus.common.customer.bean.contractrentclause.dto.ContractRentClauseEditDto;
import cn.terminus.common.customer.bean.contractrentclause.dto.ContractRentClauseQueryDto;
import cn.terminus.common.customer.bean.contractrentclause.dto.ContractRentClauseDeleteDto;
import cn.terminus.common.customer.bean.contractrentclause.dto.ContractRentClauseGetsDto;
import cn.terminus.common.customer.bean.contractrentclause.dto.ContractRentClauseResultDto;

import java.util.List;

/**
 * 合同租金条款(ContractRentClause)表服务接口
 *
 * @author makejava
 * @since 2021-07-21 11:01:11
 */
public interface ContractRentClauseMapper {

    /**
     * 新增
     *
     * @param dto
     * @return
     */
    Integer add(ContractRentClauseNewDto dto);

    /**
     * 更新
     *
     * @param dto
     * @return
     */
    Integer update(ContractRentClauseEditDto dto);


    /**
     * gets
     *
     * @param dto
     * @return
     */
    List<ContractRentClauseResultDto> gets(ContractRentClauseGetsDto dto);

    /**
     * 删除
     *
     * @param dto
     * @return
     */
    Integer delete(ContractRentClauseDeleteDto dto);

    /**
     * 查询
     *
     * @param dto
     * @return
     */
    List<ContractRentClauseResultDto> query(ContractRentClauseQueryDto dto);

    Integer deleteWithContractId(Long contractId);
}
